<pre class="docs-method-signature"><code>linkView.sendToken(token [, opt, callback])</code></pre>
<p>Send a token along the link. <code>token</code> is an SVG element (or Vectorizer element) that will be animated along the link path for <code>opt.duration</code> milliseconds (default is 1000ms). The <code>callback</code> function will be called once the token reaches the end of the link path.</p>

<p><code>opt.direction</code> specifies whether the animation should be played forwards (<code>'normal'</code> - from the link source to target, the default) or backwards (<code>'reverse'</code>).</p>

<p>Use <code>opt.connection</code> to specify the SVGPathElement for the token to follow. It expects a string selector, e.g. <code>'.connection'</code>.</p>

<pre><code>// Send an SVG circle token along the link.
var vCircle = V('circle', { r: 7, fill: 'green' });
link.findView(paper).sendToken(vCircle, { duration: 500, direction: 'reverse' }, function() {
  console.log('animation end');
});</code></pre>

<p>Note that in the code above, we use the <a href="vectorizer.html">Vectorizer</a> mini-library to create the SVG <code>circle</code> element.</p>

<p>See the <a href="http://jointjs.com/demos/pn">Petri Net simulator demo</a> for a full working example.</p>
